import { useSearchParams } from 'react-router-dom'
import styles from '../css/ticket-order.module.css'

function TicketType() {
  const [sp] = useSearchParams()

  return (
    <div className={styles.ticketType}>
      <span>坐席</span>

      <span>
        <span>二等座</span>
        <span className={styles.price}>￥{sp.get('price')}</span>
      </span>
    </div>
  )
}

export default TicketType
